package com.embhealth.dao;

import com.embhealth.pojo.Address;
import com.embhealth.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(@Param("startday") String startday,@Param("endday")String enddday);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();
    List<String> findDate();
    List<Integer> findOrderByDate();
    List<String> findVisitByDate();
    public List<Order> findAllOrderByDate(@Param("startday") String startday, @Param("endday")String endday, @Param("member_id")Integer id);
    public Order findOrderById(Integer id);
    public Address findAddressByOrderId(Integer id);
    //向预约与体检机构的中间表插入数据
    void insertOrderAndAddress(@Param("orderId") Integer orderId, @Param("addressId") Integer addressId);
}
